import routeComponentName from '@/config/route-component-name'

const noteRouter = [
  {
    path: '/note',
    component: () => import('@/layout/index.vue'),
    name: 'note',
    meta: {
      title: '短信服务',
      icon: 'Message',
    },
    redirect: '/note/list',
    children: [
      // {
      //   path: 'probab',
      //   component: () => import('@/views/note/probab/index.vue'),
      //   name: 'Probab',
      //   meta: { title: '使用概览', keepAlive: true },
      // },
      {
        path: 'list',
        component: () => import('@/views/note/list/index.vue'),
        name: 'noteList',
        meta: {
          title: '短信模版',
          keepAlive: true,
          componentName: routeComponentName.note.noteTemplateList,
        },
      },
      {
        path: 'log',
        component: () => import('@/views/note/notelog/index.vue'),
        name: 'noteLog',
        meta: {
          title: '短信日志',
          keepAlive: true,
          componentName: routeComponentName.note.noteLogList,
        },
      },
    ],
  },
]

export default noteRouter
